<h1>Events</h1>

<% if flash[:notice] %>
<div id="flash_notice"><%=h flash[:notice] %></div>
<% end %>


<table>
<tr><td>
<div  class="game_list">
 <h2>Upcoming Team Events</h2>
 
 <ul> 
 <% for events in @upcoming_events %>
 <li><%= link_to h(events.location), events_path(:id => events.id)  %></li>
 <% end %>
 <%= no_events(@upcoming_events) %>
 </ul>
 </div>
<br />
</td><td align="right">
<img src ="images/mascot.jpg" height="250" width="350" alt="Kings Mascot">
</td></tr>
</table>
<h3>Refresh Your Hockey Knowledge</h3>
<a href = "http://ellerbruch.nmu.edu/classes/cs255f03/cs255students/adegabri/P4/Play.html" target="_blank">Hockey101</a>
<br />

<h3>Practice</h3>
<p>The Kings practice typically every home non-game day at their practice facility. Practice sessions are free and open to the public.</p>


 <br />
<% if admin? %>	
 <p class="add" align="right"><%= link_to "Members", { :controller => "user"} %> | <%= link_to "schedule new event", new_events_path %> </p>
<% end %>
